package com.chao.common.util.exception;

import com.chao.common.util.reaction.ReactionCode;

/**
 * 
 * @author 张峻峰
 * @Date 2017年11月3日
 */
public class SysException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private Integer code;

    private String content;

    public SysException(String content) {
        super(content);
        this.code = ReactionCode.OPERATION;
        this.content = content;
    }

    public SysException(String content, Throwable throwable) {
        super(content, throwable);
        this.content = content;
    }

    public SysException(Integer code, String content) {
        super(content);
        this.code = code;
        this.content = content;
    }

    public SysException(Integer code, String content, Throwable throwable) {
        super(content, throwable);
        this.code = code;
        this.content = content;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}